package com.arm.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.arm.common.annotation.Excel;
import com.arm.common.core.domain.BaseEntity;

/**
 * 装备记录对象 arm_armedinfo
 * 
 * @author arm
 * @date 2023-11-06
 */
public class ArmArmedinfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 装备id */
    private Long id;

    /** 被装id */
    @Excel(name = "被装id")
    private Long equipId;

    /** 持有者id */
    @Excel(name = "持有者id")
    private Long userId;

    /** 装备时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "装备时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date userTime;

    /** 状态 */
    @Excel(name = "状态")
    private String type;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setEquipId(Long equipId) 
    {
        this.equipId = equipId;
    }

    public Long getEquipId() 
    {
        return equipId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setUserTime(Date userTime) 
    {
        this.userTime = userTime;
    }

    public Date getUserTime() 
    {
        return userTime;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("equipId", getEquipId())
            .append("userId", getUserId())
            .append("userTime", getUserTime())
            .append("type", getType())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
